package com.ts.main.mini.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ts.main.mini.dto.ProductSearchDto;
import com.ts.main.mini.dto.ProductSearchPageDto;
import com.ts.main.mini.entity.ProductEntity;
import com.ts.main.mini.vo.ProductDetailsToCartVo;
import com.ts.main.mini.vo.ProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lk
* @createDate 2025-05-16 15:11:54
*/
public interface ProductMapper extends BaseMapper<ProductEntity> {

    List<ProductVo> getProductPage(@Param("dto") ProductSearchPageDto dto);

    List<ProductVo> getProductList(@Param("dto") ProductSearchDto dto);

    ProductVo getProductDetails(@Param("productId") Integer productId);

    ProductDetailsToCartVo getProductDetailsToCart(@Param("productId") Integer productId);
}




